package com.abigdreamer.im.server.module.msgProcess;

import com.abigdreamer.im.message.BaseMessage;
import com.abigdreamer.im.server.log.EIMLogger;
import com.abigdreamer.im.server.module.ServerCache;
import com.abigdreamer.im.server.module.UserConnect;

public class CinemaMessageProcess implements IMessageProcess {

	public void processMessage(BaseMessage message) {
		String destQQ = message.getDestQQ();
		ServerCache cache = ServerCache.getInstance();
		UserConnect userConnect = cache.getUserConnectMap().get(destQQ);
		if (userConnect != null) {
			userConnect.sendTextMessage(message);
			EIMLogger.INFO("服务器转发了一个 由：" + message.getSrcQQ() + "发送给：" + message.getDestQQ() + "的视频请求消息");
		} else {
		}
	}

}
